package com.cc.flyingfish.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author CHENCHEN
 * @title
 * @createTime 2023-03-08 19:17
 */
@EnableTransactionManagement
@Configuration
public class MybatisPlusConfiguration {

    @Bean
    public PaginationInnerInterceptor paginationInnerInterceptor(){
        return new PaginationInnerInterceptor();
    }
}
